<template>
  <div class="project-material">
    <div class="materials">
      <div class="materials-item">
        <div class="materials-item-head">
          <img src="@/assets/screen/ico-material1.svg"/>
          <span>前期规划</span>
        </div>
        <div class="materials-item-main">
          <div class="materials-block">
            <i class="el-icon-files"></i>
            用地批准手续
          </div>
          <div class="materials-block">
            <i class="el-icon-files"></i>
            建设工程规划许可证
          </div>
        </div>
      </div>
      <div class="materials-item">
        <div class="materials-item-head">
          <img src="@/assets/screen/ico-material2.svg"/>
          <span>合同中标</span>
        </div>
        <div class="materials-item-main">
          <div class="materials-block">
            <i class="el-icon-files"></i>
            中标通知书（总包）
          </div>
          <div class="materials-block">
            <i class="el-icon-files"></i>
            依法确定承包人材料
          </div>
        </div>
      </div>
      <div class="materials-item">
        <div class="materials-item-head">
          <img src="@/assets/screen/ico-material2.svg"/>
          <span>施工图审</span>
        </div>
        <div class="materials-item-main">
          <div class="materials-block">
            <i class="el-icon-files"></i>
            施工图设计文件审查合格书
          </div>
        </div>
      </div>
      <div class="materials-item">
        <div class="materials-item-head">
          <img src="@/assets/screen/ico-material3.svg"/>
          <span>质量登记&安全材料</span>
        </div>
        <div class="materials-item-main">
          <div class="materials-block">
            <i class="el-icon-files"></i>
            质量安全登记表
          </div>
          <div class="materials-block">
            <i class="el-icon-files"></i>
            建设工程施工安全生产责任书
          </div>
          <div class="materials-block">
            <i class="el-icon-files"></i>
            危险性较大的分部分项工程清单
          </div>
        </div>
      </div>
    </div>
    <div class="others">
      <div class="others-title">其他材料</div>
      <ul>
        <li v-for="(item,index) in others" :key="index">{{item}}</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'project-material',
  cnName: '项目-材料',
  data() {
    return {
      others: [
        '五方主体项目负责人工程质量终身责任承诺书',
        '五方主体项目负责人工程安全终身责任承诺书',
        '五方责任主体的法定代表人授权书',
        '工程质量安全管理十个必须',
        '八个一律工作措施',
        '已经具备施工条件意见书',
        '申办行政许可项目承诺书',
        '建设工程施工前现状调查证明',
        '委托书'
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.project-material {
  padding: 10px 20px;
  height: 100%;
  overflow: auto;
  display: flex;
}

.materials {
  font-size: 20px;
  color: #21E2FF;
  width: 62%;

  &-item {
    &-head {
      display: flex;
      align-items: center;
      & > img {
        width: 18px;
        margin-right: 5px;
      }

      & > span {

      }
    }

    &-main {
      border-left: 2px solid #21E2FF;
      padding: 15px 15px 20px;
      margin-left: 7px;
    }

    &:last-child {
      .materials-item-main {
        border-left: none;
      }
    }
  }

  &-block {
    display: inline-flex;
    border: 1px solid #1281AA;
    padding: 20px 40px 20px 14px;
    align-items: baseline;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;

    &:hover {
      color: #30F580;
      border-color: #30F580;
    }

    i {
      margin-right: 10px;
    }
  }
}

.others {
  flex: 1;

  &-title {
    font-size: 20px;
    color: #21E2FF;
    margin-bottom: 30px;
  }

  ul {
    font-size: 20px;
  }

  li {
    margin-bottom: 20px;
    cursor: pointer;
    &:hover {
      color: #21E2FF;
    }
  }
}
</style>
